package com.happy_hao.topbiz.token;

import org.apache.shiro.authc.AuthenticationToken;

public class EmailCodeToken implements AuthenticationToken {
    private final String email;
    private final String code;

    public EmailCodeToken(String email, String code) {
        this.email = email;
        this.code = code;
    }

    @Override
    public Object getPrincipal() {
        return email;
    }

    @Override
    public Object getCredentials() {
        return code;
    }
}
